package com.easyctba.core.domain.bo;

import com.easyctba.common.core.validate.AddGroup;
import com.easyctba.common.core.validate.EditGroup;
import com.easyctba.core.domain.CtbaFias;
import com.easyctba.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 弗兰德斯分析业务对象 ctba_fias
 *
 * @author Huang
 * @date 2024-03-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = CtbaFias.class, reverseConvertGenerate = false)
public class CtbaFiasBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 采样间隔(s)
     */
    @NotNull(message = "采样间隔(s)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long interval;

    /**
     * 视频地址
     */
    @NotBlank(message = "视频地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoUrl;

    /**
     * 视频时长(s)
     */
    @NotNull(message = "视频时长(s)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long duration;

    /**
     * fias分析状态
     */
    @NotBlank(message = "fias分析状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fiasStatus;

    /**
     * 编码开始时间
     */
    @NotBlank(message = "编码开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startTime;

    /**
     * 编码结束时间
     */
    @NotBlank(message = "编码结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String endTime;

    /**
     * 编码表
     */
    @NotNull(message = "编码表不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long codeTable;

    /**
     * 分析耗时
     */
    @NotNull(message = "分析耗时不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long time;

    /**
     * 矩阵表
     */
    @NotNull(message = "矩阵表不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long matrixTable;

    /**
     * 雷达图值信息
     */
    @NotBlank(message = "雷达图值信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String value;

    /**
     * 雷达图轴线最大值
     */
    @NotBlank(message = "雷达图轴线最大值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String max;
}
